
// {
//   "message": [
//     {
//       "propertyName": "session",
//       "message": "session time out"
//     }
//   ]
// }

///{"message": "Unauthorized access"}  另外一种登录信息结果返回

// To parse this JSON data, do
//
//     final messagePropertyResult = messagePropertyResultFromJson(jsonString);

import 'dart:convert';

MessagePropertyResult messagePropertyResultFromJson(String str) => MessagePropertyResult.fromJson(json.decode(str));

String messagePropertyResultToJson(MessagePropertyResult data) => json.encode(data.toJson());

class MessagePropertyResult {
    MessagePropertyResult({
        this.message,
    });

    Message? message;

    factory MessagePropertyResult.fromJson(Map<String, dynamic> json) => MessagePropertyResult(
        message: Message.fromJson(json["message"]),
    );

    Map<String, dynamic> toJson() => {
        "message": message!=null ? message?.toJson(): null,
    };
}

class Message {
    Message({
        this.propertyName,
        this.message,
    });

    String? propertyName;
    String? message;

    factory Message.fromJson(Map<String, dynamic> json) => Message(
        propertyName: json["propertyName"],
        message: json["message"],
    );

    Map<String, dynamic> toJson() => {
        "propertyName": propertyName,
        "message": message,
    };
}
